﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Channels;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.Domain
{
    public class SettingService : ISettings
    {
        private Dictionary<string, string> _dic = new Dictionary<string, string>();
        public SettingService(Dictionary<string, string> settings)
        {
            this._dic = settings;
        }

        public string GetValue(string key)
        {
            if (_dic.ContainsKey(key))
            {
                return _dic[key];
            }
            else {
                return "";
            }
        }
    }
}
